﻿using LogManager.Base.Models.Projections;
using LogManager.LocalStorage.Indexes;
using Raven.Client;
using Raven.Client.Document;
using Raven.Client.Indexes;
using System.Reflection;

namespace LogManager.LocalStorage
{
    public static class DocumentStoreExtensions
    {
        public static IDocumentStore CreateIndexes(this IDocumentStore store)
        {
            
            new Events_Level().Execute(store);
            new Events_LevelsPerDate().Execute(store);
            new Events_LevelsPerLog().Execute(store);
            new Events_PerLog().Execute(store);
            new Events_PerDate().Execute(store);
            new Events_PerPath().Execute(store);
            new Events_TypePerLog().Execute(store);
            new Events_User().Execute(store);
            //new Events_ByProperty().Execute(store);

return store;
        }
    }
}